﻿#pragma once
#include "RemarkDlg.h"
#include"Dlg1.h"


// CDlg2 对话框

class CDlg2 : public CDialogEx
{
	DECLARE_DYNAMIC(CDlg2)

public:
	CDlg2(CWnd* pParent = NULL);   // 标准构造函数
	virtual ~CDlg2();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = StuStat_2 };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedButton1();
	virtual BOOL OnInitDialog();
private:
	CListCtrl stuList;
	CRemarkDlg* remarkdlg;
	int ColIndex =-1;
public:
	
	CListCtrl* getList() { return &(this->stuList); }
	afx_msg void OnClickList1(NMHDR* pNMHDR, LRESULT* pResult);
	const int getColIndex();
	void insertStu(CString name, CString FaceID,CString StuID);
	int SearchByPicID(CString FaceID);
	void statChange(int ColIndex);
	afx_msg void OnClickedRemarkButton();
};
